﻿using System;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows;
using Eniux.Windows.Controls.Core.Core;

namespace Eniux.Windows.Controls.Core.Extension
{
  //  [MarkupExtensionReturnType(typeof(Brush))]
  //public  class BrushExtension : MarkupExtension
  //  {
  //      //public BrushExtension()
  //      //{

  //      //}
  //      //public override object ProvideValue(IServiceProvider serviceProvider)
  //      //{
  //      //    return new DynamicResourceExtension() { ResourceKey = Res.Key };
  //      //}
  //      //public ExObject Res { get{ return new ExObject(); } set { } }
  //      ////public static readonly DependencyProperty ResKeyProperty = DependencyProperty.RegisterAttached("ResKey", typeof(string), typeof(BrushExtension), new PropertyMetadata("", ResKeyPropertyChanged));
  //      ////private static void ResKeyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  //      ////{

  //      ////}
  //  }

    public class ExObject : BaseCtrl
    {
        //#region Key
        ////
        //// 摘要:
        ////     获取或设置资源Key
        ////
        //// 返回结果:
        ////     资源Key
        //public string Key
        //{
        //    get { return (string)GetValue(KeyProperty); }
        //    set { SetValue(KeyProperty, value); }
        //}
        //private static readonly DependencyProperty KeyProperty = DependencyProperty.Register(
        //    "Key", typeof(string), typeof(LoadingCtrl), new PropertyMetadata(null, KeyPropertyChanged));
        //private static void KeyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        //{

        //}
        //#endregion
    }
}
